package com.cssy.yd.basic.dao;

import java.util.List;
import org.springframework.dao.DataAccessException;

import com.cssy.yd.basic.entity.BasicPlaceofstorageDO;
import com.plat.helper.SearchConditions;

/**
 * 数据访问对象接口
 * @since 2013-04-24
 */
public interface BasicPlaceofstorageDAO {

    /**
     * 插入数据
     * @param basicPlaceofstorageDO
     * @return 插入数据的主键
     */
    public String insertBasicPlaceofstorageDO(BasicPlaceofstorageDO basicPlaceofstorageDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param basicPlaceofstorageDO
     * @return 查出的记录数
     */
    public Integer countBasicPlaceofstorageDOByExample(BasicPlaceofstorageDO basicPlaceofstorageDO) throws DataAccessException;

    /**
     * 更新记录
     * @param basicPlaceofstorageDO
     * @return 受影响的行数
     */
    public Integer updateBasicPlaceofstorageDO(BasicPlaceofstorageDO basicPlaceofstorageDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param basicPlaceofstorageDO
     * @return 对象列表
     */
    public List<BasicPlaceofstorageDO> findListByExample(BasicPlaceofstorageDO basicPlaceofstorageDO) throws DataAccessException;

    /**
     * 根据主键获取basicPlaceofstorageDO
     * @param id
     * @return basicPlaceofstorageDO
     */
    public BasicPlaceofstorageDO findBasicPlaceofstorageDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteBasicPlaceofstorageDOByPrimaryKey(String id) throws DataAccessException;

    public List<BasicPlaceofstorageDO> find(SearchConditions scs) throws DataAccessException;
    public Integer count(SearchConditions scs) throws DataAccessException;
    
    public boolean validateWhCodeAndHubcode(String whcode,String hubcode) throws DataAccessException;
}